/**
 * Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 *
 * For the applicable distribution terms see the license.txt -file, included in
 * the distribution.
 */

#ifndef MYQMLAPPLICATIONVIEWER_H
#define MYQMLAPPLICATIONVIEWER_H

#include "qmlapplicationviewer.h"
#include "audioplayer.h"
#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
    #include <QSystemDeviceInfo>
    QTM_USE_NAMESPACE
    #include "rotationdata.h"
#endif

class MyQmlApplicationViewer : public QmlApplicationViewer
{
    Q_OBJECT
public:
    explicit MyQmlApplicationViewer(QWidget *parent = 0);
    void connectSignals();
    void showSplashScreen();

public slots:
    void loadGame();
    void enableSplitSreen();

private:
    AudioPlayer *audioPlayer;
#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
    RotationData *rotationData;
    QSystemDeviceInfo *deviceInfo;
#endif
};

#endif // MYQMLAPPLICATIONVIEWER_H
